// component/music/music_footer/music_footer.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        musicList:{
            type:Array,
            value:[]
        },
        playIndex:{
            type:Number,
            value:0
        },
        isPlaying:{
            type:Boolean,
            value:false
        },
        isShowLyric:{
            type:Boolean,
            value:false
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        musicItem:[],
        author:"孤勇者",
        title:"陈奕迅"
    },

    /**
     * 组件的方法列表
     */
    methods: {
        play(e){
            console.log(e)
        },
        playList(e){
            console.log(e)
        },
        playMusic(e){
            console.log("asdf",e)
            this.triggerEvent('playCurrentMusic')
        },
        pauseMusic(){
            console.log("paused")
            this.triggerEvent('pauseMusic')
        },
        showPopup(){
            this.triggerEvent('showPopup')
        },
        onClose(){
            this.triggerEvent('onClose')
        }
    }
})
